<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="送货单" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addDispacthBill()"
                            ng-disabled="!btnPermission.sendAdd" title="{{!btnPermission.sendAdd?'无权限执行此操作':''}}">新增</button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                                ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color">
                            <i class="yb-icon ico-import-o"></i>
                            <ul class="more-tool">
                                <button class="btn" ng-click="importData()">
                                    <i class="yb-icon ico-import-o"></i>
                                    <span>导入钢印号</span>
                                </button>
                            </ul>
                        </div>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.sendExport">
                            <div title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl" download-param="exportParam.sectionParam"
                                    download-key="ids">
                                    <i class="yb-icon ico-export-o"></i> 导出
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i> 导出全部
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="送货单号"
                               ng-model="condition.sendOrder">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)" reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">送货单类型：</label>
                        <select class="form-control" ng-model="condition.sendType">
                            <option value="">请选择</option>
                            <option value="0">普通</option>
                            <option value="1">直投</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">发货状态：</label>
                        <select class="form-control" ng-model="condition.isDelivery">
                            <option value="">请选择</option>
                            <option value="1">已发货</option>
                            <option value="0">未发货</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">入库状态：</label>
                        <select class="form-control" ng-model="condition.status">
                            <option value="">请选择</option>
                            <option value="0">未入库</option>
                            <option value="1">部分入库</option>
                            <option value="2">已入库</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">签收状态：</label>
                        <select class="form-control" ng-model="condition.isSign">
                            <option value="">请选择</option>
                            <option value="0">未签收</option>
                            <option value="1">已签收</option>
                            <option value="2">拒绝签收</option>
                            <option value="3">异常签收</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">是否发货：</label>
                        <select class="form-control" ng-model="condition.isDelivery">
                            <option value="">请选择</option>
                            <option value=1>是</option>
                            <option value=0>否</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">是否超期：</label>
                        <select class="form-control" ng-model="condition.isSign">
                            <option value="">请选择</option>
                            <option value=1>是</option>
                            <option value=0>否</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">送货单号：</label>
                        <textarea ng-model="condition.billNos" class="form-control" placeholder="逗号分隔或者换行分隔"></textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">采购单号：</label>
                        <input type="text" ng-model="condition.sourceOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">代理商采购订单：</label>
                        <input type="text" ng-model="condition.initialOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">直投供货商SAP代码：</label>
                        <input type="text" ng-model="condition.supplierSapCode" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">创建方：</label>
                        <textarea ng-model="condition.zhanwei" ng-blur="handleCHJFBlur($event)" class="form-control" placeholder="逗号分隔或者换行分隔"></textarea>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">接收方：</label>
                        <input type="text" ng-model="condition.applyOrgName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">收货方：</label>
                        <input type="text" ng-model="condition.deliveryOrgName" class="form-control">
                    </div>
                    <!--add by lqx-->
                    <div class="form-group clearfix" ng-if="isWJ">
                        <label class="control-label">零件号:</label>
                        <input type="text" ng-model="condition.materialsNo" class="form-control">
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label">创建时间：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)" is-open="datePickerFlag[0]" close-text="关闭"
                               ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)" is-open="datePickerFlag[1]" close-text="关闭"
                               ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small" readonly>
                    </div>
                    <!--add by lqx-->
                    <div class="form-group clearfix m-b-none" ng-if="isWJ">
                        <label class="control-label">入库时间</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.invDateStart"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(2)" is-open="datePickerFlag[2]" close-text="关闭"
                               ng-change="checkDate(condition, 'invDateStart', 'invDateEnd')" modal-size="small" readonly>
                    </div> 
                    <div class="form-group clearfix m-b-none" ng-if="isWJ">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix" ng-if="isWJ">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.invDateEnd"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(3)" is-open="datePickerFlag[3]" close-text="关闭"
                               ng-change="checkDate(condition, 'invDateStart', 'invDateEnd')" modal-size="small" readonly>
                    </div>

                    <div class="form-group clearfix m-b-none" ng-if="isWJ">
                        <label class="control-label">签收时间</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.signDateStart"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(4)" is-open="datePickerFlag[4]" close-text="关闭"
                               ng-change="checkDate(condition, 'signDateStart', 'createDateEnd')" modal-size="small" readonly>
                    </div> 
                    <div class="form-group clearfix m-b-none" ng-if="isWJ">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix" ng-if="isWJ">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.signDateEnd"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(5)" is-open="datePickerFlag[5]" close-text="关闭"
                               ng-change="checkDate(condition, 'signDateStart', 'signDateEnd')" modal-size="small" readonly>
                    </div>
                    <!--add by lqx end-->
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                 has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                            <tr>
                                <th width="40" class="text-center th-check border-l-none">
                                    <div yb-check-box yb-checked="markInfo.allCheckedBill" yb-click="selectAll(dataList, 'Bill')"></div>
                                </th>
                                <th ng-repeat="itemCol in tableConfig.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-click="toSort(tableConfig.tableCol, $index)" ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth" fixed-width="tbStyle.billFixedWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in tableConfig.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-click="toSort(tableConfig.tableCol, $index)" ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList track by $index" ng-class="{'row-selected': $index === markInfo.cueRow}" ng-click="selectRow($index)">
                                <td width="40" class="text-center border-l-none">
                                    <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, dataList, 'Bill')"></div>
                                </td>
                                <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                    width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                    title="{{item[itemCol.dataField]}}">
                                    <div class="font-0" ng-if="itemCol.type === 'operate'">
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="editDispatchBill(item)"
                                                ng-disabled="item.isSubmit == 1 || !btnPermission.sendEdit" title="{{!btnPermission.sendEdit?'无权限执行此操作':''}}">编辑</button>
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="delDispatchBill(item)"
                                                ng-disabled="item.isDelivery == 1 || !btnPermission.sendDel" title="{{!btnPermission.sendDel?'无权限执行此操作':''}}">删除</button>
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="dispacth(item)"
                                                ng-disabled="item.isSubmit == 0 || item.isDelivery == 1 || !btnPermission.dispacth" title="{{!btnPermission.dispacth?'无权限执行此操作':''}}">发货</button>
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="sign(item)"
                                                ng-disabled="item.isDelivery == 0 || item.isSign == 1 || item.isSign == 2 || !btnPermission.sendSign" title="{{!btnPermission.sendSign?'无权限执行此操作':''}}">签收</button>
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="generate(item)"
                                                ng-disabled="item.isDelivery == 0 || item.isGenerateOrder == 1 || item.isSign === 1 || !btnPermission.sendGenerate" title="{{!btnPermission.sendGenerate?'无权限执行此操作':''}}">生成单据</button>
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="postViewDetail(item)"
                                                ng-disabled="item.isDelivery == 0 || item.isSign == 0 || item.postingState == 2 || !btnPermission.sendPost" title="{{!btnPermission.sendPost?'无权限执行此操作':''}}">过账</button>
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="printBill(item)">打印</button>
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="inbound(item)" ng-if="curOrg.isBarcode === 0"
                                                ng-disabled="item.isDelivery === 0 || item.status === 2 || item.status === 3 || !btnPermission.sendIn" title="{{!btnPermission.sendIn?'无权限执行此操作':''}}">入库</button>
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="syncPrice(item)"
                                                ng-disabled="!btnPermission.sendsyncSettlementPrice" title="{{!btnPermission.sendsyncSettlementPrice?'无权限执行此操作':''}}">同步价格</button>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.billFixedWidth">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList track by $index" ng-class="{'row-selected': $index === markInfo.cueRow}"
                                ng-click="selectRow($index)">
                                <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                    <span ng-if="(!itemCol.clickFn && itemCol.type !== 'operate')">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="(!!itemCol.clickFn)">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allCheckedBill" yb-check-name="全选"
                     yb-click="selectAll(dataList, 'Bill')"></div>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="编辑送货单" active="activeFlag[1]" ng-if="activeFlag[1]">
            <form name="orderEditForm" class="m-t-sm form-horizontal form-up-tb clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">创建方：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.soldOrgName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">接收方：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.applyOrgName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">收货方：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.deliveryOrgName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">联系人：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="contacter" class="form-control" ng-model="orderObj.headerInfo.contactUser" maxlength="200">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">联系电话：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="phone" class="form-control" ng-model="orderObj.headerInfo.contactTel" maxlength="200">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">地址：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="address" class="form-control" ng-model="orderObj.headerInfo.address">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">物流公司：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="logisticsCompany" class="form-control" ng-model="orderObj.headerInfo.logisticsCompany" maxlength="200">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">物流单号：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="logisticsBillId" class="form-control" ng-model="orderObj.headerInfo.logisticsOrder" maxlength="30">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">预计送达时间：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="deliveryDate" class="form-control date-picker" ng-model="orderObj.headerInfo.deliveryDate"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showDatepicker = !showDatepicker"
                               is-open="showDatepicker" close-text="关闭" readonly>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="remark" class="form-control" ng-model="orderObj.headerInfo.note" maxlength="200">
                    </div>
                </div>
            </form>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="main-area d-b-60"  style="top:205px">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{directMaterielTableConfig.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in directMaterielTableConfig.tableCol track by $index" ng-if="itemCol.type !== 'rowNo'&&!itemCol.hidden" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="directMaterielTableConfig.targetWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialsList.length > 0">
                        <table class="table-fixed border-none" width="{{directMaterielTableConfig.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.materialsList track by $index">
                                <td ng-repeat="itemCol in directMaterielTableConfig.tableCol track by $index" ng-if="itemCol.type !== 'rowNo'&&!itemCol.hidden" width="{{itemCol.width}}"
                                    title="{{item[itemCol.dataField]}}">
                                    <div class="spill-dots" ng-if="!itemCol.needInput && !itemCol.input" ng-class="{'danger-color': itemCol.needWarn}">
                                        {{item[itemCol.dataField]}}
                                    </div>
                                    <div ng-if="itemCol.needInput && itemCol.inputType === 'qty'" class="td-edit pos-r">
                                        <input type="text" class="form-control" ng-model="item[itemCol.dataField]" ng-change="countTotal(item)"
                                               yb-number-input max="99999.999" maxlength="9" disable-decimal="false" decimal-places="3"
                                               ng-class="{'error': item.qtyErr || item.qtyFormatErr}">
                                        <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                            <i class="triangle"></i>
                                            <div class="msg">发货数量不能为空或0</div>
                                        </div>
                                    </div>
                                    <div ng-if="itemCol.needInput && itemCol.inputType === 'stealNo'" class="td-edit pos-r">
                                        <input type="text" class="form-control" ng-model="item[itemCol.dataField]">
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialsList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="submitDispatchBillData('update', orderEditForm.$valid)">保存</button>
                <button type="button" class="btn btn-primary m-r-sm" ng-click="submitDispatchBillData('submit', orderEditForm.$valid)">提交</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[2]" ng-if="activeFlag[2]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">送货单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.sendOrder || '-'}}">
                        {{orderObj.headerInfo.sendOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">是否签收：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.signStr || '-'}}">
                        {{orderObj.headerInfo.signStr || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!needHide">
                    <label class="col-xs-4 m-b-n text-right max-w-100">签收备注：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.signNote || '-'}}">
                    {{orderObj.headerInfo.signNote || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">是否发货：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.isDelivery ? '是' : '否'}}">
                        {{orderObj.headerInfo.isDelivery ? '是' : '否'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">供货商名称：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.soldOrgName || '-'}}">
                        {{orderObj.headerInfo.soldOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">接收方：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.applyOrgName || '-'}}">
                        {{orderObj.headerInfo.applyOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">收货方：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.deliveryOrgName || '-'}}">
                        {{orderObj.headerInfo.deliveryOrgName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">物流公司：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logisticsCompany || '-'}}">
                        {{orderObj.headerInfo.logisticsCompany || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">物流单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.logisticsOrder || '-'}}">
                        {{orderObj.headerInfo.logisticsOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">联系人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.contactUser || '-'}}">
                        {{orderObj.headerInfo.contactUser || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">联系电话：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.contactTel || '-'}}">
                        {{orderObj.headerInfo.contactTel || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">地址：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.address || '-'}}">
                        {{orderObj.headerInfo.address || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">预计送达时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(orderObj.headerInfo.deliveryDate|YbDate) || '-'}}">
                        {{(orderObj.headerInfo.deliveryDate|YbDate:"yyyy-MM-dd HH:mm:ss") || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!needHide">
                    <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.note || '-'}}">
                        {{orderObj.headerInfo.note || "-"}}
                    </div>
                </div>
                <!--add by lqx-->
                <div class="form-group col-xs-3 m-b-sm" ng-if="isWJ">
                    <label class="col-xs-4 m-b-n text-right max-w-100">仓库编码：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.rkWarehouseCode || '-'}}">
                        {{orderObj.headerInfo.rkWarehouseCode || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isWJ">
                    <label class="col-xs-4 m-b-n text-right max-w-100">仓库描述：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.rkWarehouseDesc || '-'}}">
                        {{orderObj.headerInfo.rkWarehouseDesc || "-"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="main-area d-b-60" style="top:200px">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <thead>
                            <tr>
                                <th width="60">
                                    操作
                                </th>
                                <th ng-repeat="itemCol in materielTableConfig.tableCol track by $index" ng-if="!itemCol.hidden" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="editMaterielConfig.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialsList.length > 0">
                        <table class="table-fixed border-none" width="{{materielTableConfig.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.materialsList track by $index">
                                <td width="60">
                                    <button type="button" class="btn btn-operate" ng-click="posting(item)"
                                            ng-disabled="!!item.postingDisabled || orderObj.headerInfo.isDelivery == 0 || orderObj.headerInfo.isSign == 0 ||
                                            item.postingState == 2 || item.realQty == item.postingNum || !btnPermission.sendPost" title="{{!btnPermission.sendPost?'无权限执行此操作':''}}">过账</button>
                                </td>
                                <td class="spill-dots" ng-repeat="itemCol in materielTableConfig.tableCol track by $index"
                                    width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}" ng-if="!itemCol.hidden">
                                    {{item[itemCol.dataField]}}
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialsList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-default" ng-click="cancel()">返回</button>
            </div>
        </div>
        <div tab heading="选择采购订单" active="activeFlag[3]" ng-if="activeFlag[3] || activeFlag[4]">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="directPurchasePlan.search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                                ng-click="directPurchasePlan.switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="directPurchasePlan.switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="采购订单号"
                               ng-model="directPurchasePlan.condition.billNo">
                        <span class="input-group-addon cursor-pointer" ng-click="directPurchasePlan.search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="directPurchasePlan.toolbarConfig.showAdvanceSearch" search-data="directPurchasePlan.search(1)" reset-data="directPurchasePlan.reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">采购订单号：</label>
                        <input type="text" class="form-control" ng-model="directPurchasePlan.condition.billNo">
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="directPurchasePlan.toolbarConfig.showColConfig" ng-model="directPurchasePlan.tableConfig" col-fixed="true"
                 set-tb-style="directPurchasePlan.setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{directPurchasePlan.tableConfig.fixedWidth}}">
                            <thead>
                            <tr>
                                <th width="40" class="text-center th-check border-l-none">
                                    <div yb-check-box yb-checked="markInfo.allCheckedPurchaseBill" yb-click="selectAll(directPurchasePlan.dataList, 'PurchaseBill')"></div>
                                </th>
                                <th width="120" class="border-r-none">
                                    操作
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="directPurchasePlan.tbStyle.sellFixedWidth">
                        <table class="table-fixed border-none" width="{{directPurchasePlan.tableConfig.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in directPurchasePlan.tableConfig.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-click="directPurchasePlan.toSort(directPurchasePlan.tableConfig.tableCol, $index)"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="directPurchasePlan.tableConfig.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="directPurchasePlan.dataList.length > 0">
                        <table class="table-fixed border-none" width="{{directPurchasePlan.tableConfig.fixedWidth}}">
                            <tbody>
                            <tr ng-repeat="item in directPurchasePlan.dataList track by $index" ng-click="directPurchasePlan.selectRow($index)"
                                ng-class="{'row-selected': $index === directPurchasePlan.markInfo.cueRow}">
                                <td width="40" class="text-center border-l-none">
                                    <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, directPurchasePlan.dataList, 'PurchaseBill')"></div>
                                </td>
                                <td width="200" class="border-l-none font-0">
                                    <button class="btn btn-operate" ng-click="createDispatchBill(item)">新增发货单</button>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="directPurchasePlan.dataList.length > 0" ng-style="directPurchasePlan.tbStyle.sellFixedWidth">
                        <table class="table-fixed border-none" width="{{directPurchasePlan.tableConfig.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in directPurchasePlan.dataList track by $index" ng-click="directPurchasePlan.selectRow($index)"
                                ng-class="{'row-selected': $index === directPurchasePlan.markInfo.cueRow}" >
                                <td class="spill-dots" ng-repeat="itemCol in directPurchasePlan.tableConfig.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                    title="{{item[itemCol.dataField]}}">
                                    {{item[itemCol.dataField]}}
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="directPurchasePlan.dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allCheckedPurchaseBill" yb-check-name="全选"
                     yb-click="selectAll(directPurchasePlan.dataList, 'PurchaseBill')"></div>
                <button type="button" class="btn btn-primary" ng-disabled="directPurchasePlan.dataList.length==0"
                        ng-click="batchCreateSendOrder()">下一步
                </button>
                <div yb-page-info ng-model="directPurchasePlan.pageInfo" yb-refresh="directPurchasePlan.search()"></div>
            </div>
        </div>
        <div tab heading="新增送货单" active="activeFlag[4]" ng-if="activeFlag[4]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">创建方：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.soldOrgName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">接收方：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.applyOrgName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">收货方：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{orderObj.headerInfo.deliveryOrgName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">联系人：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="contacter" class="form-control" ng-model="orderObj.headerInfo.contactUser" maxlength="200">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">联系电话：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="phone" class="form-control" ng-model="orderObj.headerInfo.contactTel" maxlength="200">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">地址：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="address" class="form-control" ng-model="orderObj.headerInfo.address">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">物流公司：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="logisticsCompany" class="form-control" ng-model="orderObj.headerInfo.logisticsCompany" maxlength="200">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">物流单号：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="logisticsBillId" class="form-control" ng-model="orderObj.headerInfo.logisticsOrder" maxlength="30">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">预计送达时间：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="deliveryDate" class="form-control date-picker" ng-model="orderObj.headerInfo.deliveryDate"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showDatepicker = !showDatepicker"
                               is-open="showDatepicker" close-text="关闭" readonly>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="remark" class="form-control" ng-model="orderObj.headerInfo.note" maxlength="200">
                    </div>
                </div>
            </form>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()">批量删除</button>
                </div>
            </div>
            <div class="main-area d-b-60"  style="top:215px">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{directMaterielTableConfig.scrollWidth}}">
                            <thead>
                            <tr>
                                <th width="40" class="th-check text-center">
                                    <div yb-check-box yb-checked="markInfo.allCheckedMaterial" yb-click="selectAll(orderObj.materialsList, 'Material')"></div>
                                </th>
                                <th width="50">
                                    操作
                                </th>
                                <th ng-repeat="itemCol in directMaterielTableConfig.tableCol track by $index" ng-if="itemCol.type !== 'rowNo'&&!itemCol.hidden" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="directMaterielTableConfig.targetWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.materialsList.length > 0">
                        <table class="table-fixed border-none" width="{{directMaterielTableConfig.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.materialsList track by $index">
                                <td width="40" class="text-center">
                                    <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, orderObj.materialsList, 'Material')"></div>
                                </td>
                                <td width="50">
                                    <button type="button" class="btn btn-operate" ng-click="delMateriel(item, $index, $event)">删除</button>
                                </td>
                                <td ng-repeat="itemCol in directMaterielTableConfig.tableCol track by $index" ng-if="itemCol.type !== 'rowNo'&&!itemCol.hidden" width="{{itemCol.width}}"
                                    title="{{item[itemCol.dataField]}}">
                                    <div class="spill-dots" ng-if="!itemCol.needInput && !itemCol.input" ng-class="{'danger-color': itemCol.needWarn}">
                                        {{item[itemCol.dataField]}}
                                    </div>
                                    <div ng-if="itemCol.needInput && itemCol.inputType === 'qty'" class="td-edit pos-r">
                                        <input type="text" class="form-control" ng-model="item[itemCol.dataField]" ng-change="countTotal(item)"
                                               ng-focus="showQtyTip(item)" ng-blur="hideQtyTip(item)"
                                               yb-number-input max="99999.999" maxlength="9" disable-decimal="false" decimal-places="3"
                                               ng-class="{'error': item.qtyErr || item.qtyFormatErr}">
                                        <div class="pos-a tool-tips" ng-if="!!item.qtyErr&&!!item.showQtyErr">
                                            <i class="triangle"></i>
                                            <div class="msg">发货数量不能为空或0</div>
                                        </div>
                                    </div>
                                    <div ng-if="itemCol.needInput && itemCol.inputType === 'stealNo'" class="td-edit pos-r">
                                        <input type="text" class="form-control" ng-model="item[itemCol.dataField]">
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.materialsList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="submitDispatchBillData('add', orderForm.$valid)">保存</button>
                <button type="button" class="btn btn-primary m-r-sm" ng-click="submitDispatchBillData('submit', orderForm.$valid)">提交</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="入库" active="activeFlag[5]" ng-if="activeFlag[5]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">送货单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.sendOrder || '-'}}">
                        {{detailInfo.headerInfo.sendOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">是否签收：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.signStr || '-'}}">
                        {{detailInfo.headerInfo.signStr || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">签收备注：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.signNote || '-'}}">
                        {{detailInfo.headerInfo.signNote || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">是否发货：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.isDelivery ? '是' : '否'}}">
                        {{detailInfo.headerInfo.isDelivery ? '是' : '否'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">供货商名称：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.soldOrgName || '-'}}">
                        {{detailInfo.headerInfo.soldOrgName || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">接收方：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.applyOrgName || '-'}}">
                        {{detailInfo.headerInfo.applyOrgName || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">收货方：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.deliveryOrgName || '-'}}">
                        {{detailInfo.headerInfo.deliveryOrgName || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">物流公司：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.logisticsCompany || '-'}}">
                        {{detailInfo.headerInfo.logisticsCompany || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">物流单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.logisticsOrder || '-'}}">
                        {{detailInfo.headerInfo.logisticsOrder || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">联系人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.contactUser || '-'}}">
                        {{detailInfo.headerInfo.contactUser || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">联系电话：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.contactTel || '-'}}">
                        {{detailInfo.headerInfo.contactTel || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">地址：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.address || '-'}}">
                        {{detailInfo.headerInfo.address || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">预计送达时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.deliveryDate | YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{detailInfo.headerInfo.deliveryDate | YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.note || '-'}}">
                        {{detailInfo.headerInfo.note || "-"}}
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">选择仓库：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="detailInfo.headerInfo.warehouseCode" select-obj="selectWarehouse()"
                             clear-form="clearWarehouse()" tips-name="选择仓库" form-require="true"></div>
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">仓库描述：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headerInfo.warehouseDesc || '-'}}">
                        {{detailInfo.headerInfo.warehouseDesc || "-"}}
                    </div>
                </div>

            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="main-area d-b-60" style="top:200px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in inTbConf.tableCol track by $index" width="{{itemCol.width}}" ng-show="!!itemCol.isShow">
                                    <div yb-thead-operate ng-model="itemCol" target-width="inTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.materialsList.length > 0">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in detailInfo.materialsList track by $index">
                                <td ng-repeat="itemCol in inTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow"
                                    ng-class="{'wrapper-none': itemCol.inputType === 'func'}">
                                    <div class="spill-dots" ng-if="!itemCol.input" title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </div>
                                    <div ng-if="!!itemCol.input" class="td-edit pos-r">
                                        <div ng-if="itemCol.inputType === 'func' && (item.status == 0 || item.status == 1)">
                                            <div yb-form-clear class="td-edit" ng-model="item[itemCol.dataField]" select-obj="selDepot(item)"
                                                 clear-form="clearDepot(item)" tips-name="储位"
                                                 title="{{item[itemCol.dataField]}}" ng-class="{'error': !!item.locationErr}"></div>
                                            <div class="pos-a tool-tips" ng-if="!!item.locationErr && !item.locationCode">
                                                <i class="triangle"></i>
                                                <div class="msg">请选择储位</div>
                                            </div>
                                        </div>

                                        <div ng-if="itemCol.inputType === 'amount' && (item.status == 0 || item.status == 1)">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                yb-number-input max="item.currentAmountMax" maxlength="9" disable-decimal="false" decimal-places="3"
                                                ng-change="checkRequired(item, 'currentAmount')"
                                                ng-focus="showErrTip(item,'currentAmount')" ng-blur="hideErrTip(item,'currentAmount')"
                                                ng-class="{'error':item.currentAmountErr||item.currentAmountShowErr}">
                                            <div class="pos-a tool-tips" ng-if="!!item.currentAmountShowErr">
                                                <i class="triangle"></i>
                                                <div class="msg">本次入库数量不能为空或0</div>
                                            </div>
                                        </div>

                                        <div ng-if="(item.status == 2 || item.status == 3)" title="{{item[itemCol.dataField]}}">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.materialsList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="inboundSubmit()">确认入库</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
    </div>
</div>
